package com.loveprogrammer.base.network.support;

import com.loveprogrammer.command.IHandler;
import io.netty.channel.Channel;

/**
 * @ClassName BaseHandler
 * @Description 基础类
 * @Author admin
 * @Date 2024/2/5 11:15
 * @Version 1.0
 */
public abstract class BaseHandler implements IHandler {

    public Integer getSessionId(Channel channel) {
        return SessionManager.getInstance().getSessionByChannel(channel).getId();
    }
}
